package cn.tedu._03vehicle.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.NonNull;

@Data
public class userreg
{
    @Schema(description = "用户名", required = true)

    @Pattern(regexp = "^[a-zA-Z0-9]{3,10}$", message = "用户名格式错误")
    private String username;
    @Schema(description = "密码", required = true)
    private String password;
    @Schema(description = "邮箱", required = true)
    private String email;
    @Schema(description = "手机号", required = true)
    private String phone;
}
